import subprocess
from datetime import datetime

def get_git_logs(start_date, end_date):
    command = f'git log --after="{start_date}" --before="{end_date}" --name-only --pretty=format:"%H"'
    result = subprocess.check_output(command, shell=True).decode('utf-8')
    commit_entries = result.split('\n\n')
    return commit_entries

def analyze_commit(commit_entry):
    lines = commit_entry.split('\n')
    commit_hash = lines[0]
    files = lines[1:]
    return commit_hash, [file for file in files if file.endswith('.java')]
